package io.renren.modules.order.service.impl;

import io.renren.modules.order.dao.OrderDao;
import io.renren.modules.order.entity.OrderEntity;
import io.renren.modules.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderDao orderDao;

    @Override
    public void insertOrder(OrderEntity orderEntity) {
        orderDao.insertOrder(orderEntity);
    }

    @Override
    public void updateOrder(OrderEntity orderEntity) {
        orderDao.updateOrder(orderEntity);
    }

    @Override
    public List getUserOrderList(Map map) {
        return orderDao.getUserOrderList(map);
    }

    @Override
    public OrderEntity getOrderInfo(Map map) {
        return orderDao.getOrderInfo(map);
    }
}
